package com.smart.client.core.rule;

import com.smart.client.rainwater.RainWaterResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import static com.smart.client.core.AlarmRuleType.RAIN_WATER_SIGN;
import static com.smart.client.core.rule.AbstractRuleHandler.RULE_HANDLER_SUFFIX;

/**
 * Created By Li Jiaxi
 * <br/>Date: 2023/4/14 11:25
 * <br/>Description:
 */
@Slf4j
@Component(value = RAIN_WATER_SIGN + RULE_HANDLER_SUFFIX)
public class RainWaterRuleHandler extends DefaultRuleHandler<RainWaterResult> {

    /**
     * 水位、雨量 数据上报的topic值，用于区分
     */
    public static final String RAIN_WATER_TOPIC = "monitorDataTopic";

    @Override
    public void insertRecord(RainWaterResult rainWaterResult) {
        log.debug("插入 水位、雨量 记录表");
    }

    @Override
    protected void verify(RainWaterResult rainWaterResult) {
        log.debug(" 水位、雨量 校验");
    }
}
